package com.yupi.yuaiagent.tools;

import org.springframework.ai.tool.annotation.Tool;

/**
 * 终止工具（作用是让自主规划智能体能够合理地中断）
 */
public class TerminateTool {

    @Tool(description = """
            Terminate the interaction when there are no tools to call or the assistant cannot continue executing tasks.
            After completing all tasks, call this tool to end the work..
            """)
    public String doTerminate() {
        return "任务结束";
    }
}